/**
 * Copyright (C) © 2014 深圳市掌玩网络技术有限公司
 */

/**
 * <p>
 * <strong>Features draft description.主要功能介绍</strong>
 * </p>
 * 
 * @author Administrator
 * @Create at 2016-1-22 下午2:46:57
 * @Version 1.0
 * 
 */
public class InputSampleServer implements Runnable {
    int     frameIndex;
    int     fps;
    boolean flag_sampleRun = false;
    Thread sampleThread;
    InputSampleServer(){

    }
    public void start()  {
        if (sampleThread!=null) {
            sampleThread = new Thread(this);
        }
        sampleThread.start();
    }
    public void stop(){
        sampleThread = null;
        flag_sampleRun = false;
    }
    @Override
    public void run() {
        while (flag_sampleRun) {
            try {
                Thread.sleep(1000 / fps);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
        
    }
}
